class GiftEntity {
  int id;
  int createTime;
  int updateTime;
  int valid;
  String giftImg;
  String giftName;
  int giftPrice;
  String giftSmallImg;
  int giftType;
  int convertGoldAmount;
  int giftModule;
  int roomFloatingScreenFlag;
  int serviceFloatingScreenFlag;
  int backpackGiftNum;

  GiftEntity(
      {this.id,
        this.createTime,
        this.updateTime,
        this.valid,
        this.giftImg,
        this.giftName,
        this.giftPrice,
        this.giftSmallImg,
        this.giftType,
        this.convertGoldAmount,
        this.giftModule,
        this.roomFloatingScreenFlag,
        this.serviceFloatingScreenFlag,
        this.backpackGiftNum});

  GiftEntity.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    createTime = json['createTime'];
    updateTime = json['updateTime'];
    valid = json['valid'];
    giftImg = json['giftImg'];
    giftName = json['giftName'];
    giftPrice = json['giftPrice'];
    giftSmallImg = json['giftSmallImg'];
    giftType = json['giftType'];
    convertGoldAmount = json['convertGoldAmount'];
    giftModule = json['giftModule'];
    roomFloatingScreenFlag = json['roomFloatingScreenFlag'];
    serviceFloatingScreenFlag = json['serviceFloatingScreenFlag'];
    backpackGiftNum = json['backpackGiftNum'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['createTime'] = this.createTime;
    data['updateTime'] = this.updateTime;
    data['valid'] = this.valid;
    data['giftImg'] = this.giftImg;
    data['giftName'] = this.giftName;
    data['giftPrice'] = this.giftPrice;
    data['giftSmallImg'] = this.giftSmallImg;
    data['giftType'] = this.giftType;
    data['convertGoldAmount'] = this.convertGoldAmount;
    data['giftModule'] = this.giftModule;
    data['roomFloatingScreenFlag'] = this.roomFloatingScreenFlag;
    data['serviceFloatingScreenFlag'] = this.serviceFloatingScreenFlag;
    data['backpackGiftNum'] = this.backpackGiftNum;
    return data;
  }
}
